const path = require("path");

function resolve(dir) {
    return path.join(__dirname, dir)
}

module.exports = {
    // configureWebpack: {
    //     entry: "./src/render/main.js",
    // },
    chainWebpack: (config) => {
        config.resolve.alias
            .set('@', resolve('./src/render'))
        config.entry('app').clear().add('./src/render/main.js').end()
    },
    //出口
    outputDir: path.resolve(__dirname, './app/dist/render'),
    assetsDir: '',
    publicPath: './',
    devServer: {
        // port:process.env.NODE_ENV_PORT
        port: 1314,
    },
}